package com.lovetemperature.action;

import java.util.List;

import com.lovetemperature.model.Shop;
import com.lovetemperature.service.ShopService;
import com.opensymphony.xwork2.ActionSupport;

public class ShopAction extends ActionSupport {
	private ShopService shopService;
	private List<Shop> shopList;
	
	public String show() {
		shopList = shopService.findAllShop();
		return "success";
	}

	public ShopService getShopService() {
		return shopService;
	}

	public void setShopService(ShopService shopService) {
		this.shopService = shopService;
	}

	public List<Shop> getShopList() {
		return shopList;
	}

	public void setShopList(List<Shop> shopList) {
		this.shopList = shopList;
	}
}
